package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
public class ExchangeRecord implements Serializable {
    private static final long serialVersionUID = 7510646552921478409L;
    @ApiModelProperty(value = "交易订单号")
    @TableId(type = IdType.INPUT)
    private String orderNo;
    @ApiModelProperty(value = "交易金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "交易类型")
    private String type;
    @ApiModelProperty(value = "交易状态")
    private String exchangeStatus;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "账号")
    private String account;
    private String orderBatchNo;
    @ApiModelProperty(value = "来源")
    private String source;
    @ApiModelProperty(value = "蓝星币")
    private Long blueCoin;
}
